Methods
It's possible to handle several methods from ProfessionalList, Chat and Medical History. All of them can be captured calling it from MeetingDoctorsClient:
getProfessionalList
MeetingDoctorsClient.instance.getProfessionalList(object : MeetingDoctorsClient.GetProfessionalListListener{
override fun onResponse(professionals: List<Professional>?) {
}
override fun onError(error: Throwable) {
}
})
fetchProfessionalDetail
MeetingDoctorsClient.instance.fetchProfessionalDetail("professionalHash", object : OnResponseListener{
override fun onSuccess(professional: Professional?) {
}
override fun onError(error: String?) {
}
})
joinRoom
MeetingDoctorsClient.instance.joinRoom("professionalHash", object : ChatSocket.OnEnterRoomListener{
override fun onEnterRoom(roomId: Int) {
}
})
leaveRoom
MeetingDoctorsClient.instance.leaveRoom(roomId: Int)
fetchMessages
MeetingDoctorsClient.instance.fetchMessages(roomId: Int, object : ChatSocket.OnMessageListListener{
override fun onMessageList(messages: JSONArray?) {
}
})
sendMessageChat
MeetingDoctorsClient.instance.sendMessageChat("message", roomId: Int)
sendImageChat
MeetingDoctorsClient.instance.sendImageChat(roomId: Int, "imagePath")
sendFileChat
MeetingDoctorsClient.instance.sendFileChat(roomId: Int, fileUri: Uri)
deleteMessages
MeetingDoctorsClient.instance.deleteMessages(roomId: Int)
attachAllergies
MeetingDoctorsClient.instance.attachAllergies(object : MeetingDoctorsClient.GetAllergiesListener{
override fun onResponse(allergies: List<Allergy>?) {
}
override fun onError(error: Throwable) {
}
})
saveAllergy
MeetingDoctorsClient.instance.saveAllergy(allergy: Allergy, object : MeetingDoctorsClient.OnResponseMedicalHistory{
override fun onSuccess() {
}
override fun onError(error: Throwable) {
}
})
editAllergy
MeetingDoctorsClient.instance.editAllergy(allergy: Allergy, object : MeetingDoctorsClient.OnResponseMedicalHistory{
override fun onSuccess() {
}
override fun onError(error: Throwable) {
}
})
deleteAllergy
MeetingDoctorsClient.instance.deleteAllergy(idAllergy: Long, object : MeetingDoctorsClient.OnResponseMedicalHistory{
override fun onSuccess() {
}
override fun onError(error: Throwable) {
}
})
attachDiseases
MeetingDoctorsClient.instance.attachDiseases(object : MeetingDoctorsClient.GetDiseasesListener{
override fun onResponse(diseases: List<Disease>?) {
}
override fun onError(error: Throwable) {
}
})
saveDisease
MeetingDoctorsClient.instance.saveDisease(disease: Disease, object : MeetingDoctorsClient.OnResponseMedicalHistory{
override fun onSuccess() {
}
override fun onError(error: Throwable) {
}
})
editDisease
MeetingDoctorsClient.instance.editDisease(disease: Disease, object : MeetingDoctorsClient.OnResponseMedicalHistory{
override fun onSuccess() {
}
override fun onError(error: Throwable) {
}
})
deleteDisease
MeetingDoctorsClient.instance.deleteDisease(idDisease: Long, object : MeetingDoctorsClient.OnResponseMedicalHistory{
override fun onSuccess() {
}
override fun onError(error: Throwable) {
}
})
attachMedications
MeetingDoctorsClient.instance.attachMedications(object : MeetingDoctorsClient.GetMedicationsListener{
override fun onResponse(medications: List<Medication>?) {
}
override fun onError(error: Throwable) {
}
})
saveMedication
MeetingDoctorsClient.instance.saveMedication(medication: Medication, object : MeetingDoctorsClient.OnResponseMedicalHistory{
override fun onSuccess() {
}
override fun onError(error: Throwable) {
}
})
editMedication
MeetingDoctorsClient.instance.editMedication(medication: Medication, object : MeetingDoctorsClient.OnResponseMedicalHistory{
override fun onSuccess() {
}
override fun onError(error: Throwable) {
}
})
deleteMedication
MeetingDoctorsClient.instance.deleteMedication(idMedication: Long, object : MeetingDoctorsClient.OnResponseMedicalHistory{
override fun onSuccess() {
}
override fun onError(error: Throwable) {
}
})
attachBMI
MeetingDoctorsClient.instance.attachBMI(object : MeetingDoctorsClient.GetBMIListener{
override fun onResponse(bmiList: List<BMI>?) {
}
override fun onError(error: Throwable) {
}
})
saveBMI
MeetingDoctorsClient.instance.saveBMI(bmi: BMI, object : MeetingDoctorsClient.OnResponseMedicalHistory{
override fun onSuccess() {
}
override fun onError(error: Throwable) {
}
})
editBMI
MeetingDoctorsClient.instance.editBMI(bmi: BMI, object : MeetingDoctorsClient.OnResponseMedicalHistory{
override fun onSuccess() {
}
override fun onError(error: Throwable) {
}
})
deleteBMI
MeetingDoctorsClient.instance.deleteBMI(idBMI: Long, object : MeetingDoctorsClient.OnResponseMedicalHistory{
override fun onSuccess() {
}
override fun onError(error: Throwable) {
}
})
attachReports
MeetingDoctorsClient.instance.attachReports(object : MeetingDoctorsClient.GetReportsListener{
override fun onResponse(reports: List<Report>?) {
}
override fun onError(error: Throwable) {
}
})
attachReferrals
MeetingDoctorsClient.instance.attachReferrals(object : MeetingDoctorsClient.GetReferralsListener{
override fun onResponse(referrals: List<Referral>?) {
}
override fun onError(error: Throwable) {
}
})
attachPrescription
MeetingDoctorsClient.instance.attachPrescription(object : MeetingDoctorsClient.GetPrescriptionListener{
override fun onResponse(prescription: Prescription) {
}
override fun onError(error: Throwable) {
}
})